package com.xigua._数学;

/**
 * @author LiRongHua
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2022/4/39:38
 */
public class _744_寻找比目标字母大的最小字母 {

    public char nextGreatestLetter(char[] letters, char target) {
        int length = letters.length;
        for (int i = 0; i < length; i++) {
            if (letters[i]-target >0) return letters[i];
        }
        return letters[0];
    }
}
